const fs = require('fs');
function readSyncByfs(tips) {
    let response;
    tips = tips || '> ';
    process.stdout.write(tips);
    process.stdin.pause();
    response = fs.readSync(process.stdin.fd, 1000, 0, 'utf8');
    process.stdin.end();
    return response[0].trim();
}
function log(txt){
    console.log(txt);
}
module.exports= {
    readSyncByfs:readSyncByfs,
    log:log
}